<script type="text/html" template lay-done="layui.data.sendParams(d.params)">
  <div class="layui-form" lay-filter="form_online">
    <div class="layui-form-item">
      <label class="layui-form-label" style="width: 120px">处罚天数</label>
      <div class="layui-input-inline" style="width: 100px">
        <input type="number" class="layui-input" lay-verify="required" name="punish_day"
               value="{{d.params.punish_log ? d.params.punish_log.punish_day : 0}}">
      </div>
      <div class="layui-inline layui-form-mid layui-word-aux">
        天
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-inline layui-form-mid layui-word-aux">
        按当前时间起算，处罚开始后无法购买、出售商品
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-footer">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
          <input type="button" lay-submit lay-filter="submit_resale" value="确认" class="layui-btn">
        </div>
      </div>
    </div>
  </div>
</script>
<script>
  layui.data.sendParams = function (obj) {
    layui.use([], function () {
      let form = layui.form
        , laydate = layui.laydate

      form.render()
    })
  }
</script>
